////////////////////////////////////////////////////////////////////////////////
//// jsloader.js에사 가장 처음에 로딩하여야 함.                            ////
//////////////////////////////////////////////////////////////////////////////

/**
 * jaeho_oh
 */

var ConsoleLog = function(){};

ConsoleLog.prototype.d = function(tag, msg) {
	console.log("< " + tag + " > " + msg);
}

ConsoleLog.prototype.o = function(tag, obj) {
	console.log(" -------< " + tag + " >-------- ");
	console.log(obj);
}

//var Log = new ConsoleLog();

var Utility = function() {}

Utility.prototype.replaceString = function(num) {
	var rtn;
	
	if(num > 9)
		rtn = "" + num;
	else
		rtn = "0"+num;
	
	return rtn;
}

Utility.prototype.trim = function(str) {
	return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}

var utility = new Utility();

var StringBuffer = function() {
    this.buffer = new Array();
}

StringBuffer.prototype.append = function(obj) {
    this.buffer.push(obj);
}

StringBuffer.prototype.toString = function() {
    return this.buffer.join("");
}

StringBuffer.prototype.clear = function() {
	this.buffer = undefined;
	this.buffer = new Array();
}

var PageControl = function() {
	this.currentPage = 1;
	this.listCount = 10;
}
PageControl.prototype.addView = function() {
	this.currentPage ++;
}
PageControl.prototype.clear = function() {
	this.currentPage = 1;
}
PageControl.prototype.setListCount = function(count) {
	this.listCount = count;
}
